﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
/*********************************************
 * Author: resaberonjr
 * DateWritten: 09/2011
 *********************************************/
using System.Collections;

namespace RootBaseFramework.Infra.Data
{
    public interface IContext : IDisposable        
    {
        DbSet<TEntity> Set<TEntity>() where TEntity : class;
        DbEntityEntry<TEntity> Entry<TEntity>(TEntity entity) where TEntity : class;

        Database Database { get; }
       
        int SaveChanges();

    }
}
